<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/2
 * Time: 21:02
 */

use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>

<?php $form = ActiveForm::begin();?>

    <?= $form->field($model,'name') ?>

    <?= $form->field($model,'email') ?>

    <div class="form-group">
        <?= Html::submitButton('Submit',['class'=>'btn btn-primary']) ?>
    </div>

<?php ActiveForm::end();?>
